package com.zjh.mapper;

import com.zjh.dao.sysUserDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface sysUserMapper {

    List<sysUserDao> getAllUsers();

    @Select("select * from users where id = #{id}")
    sysUserDao getUserByid(int id);

    void delectUserByid();

    void addUser(sysUserDao user);

    sysUserDao getuserbyUsername(String username);
}
